//
//  GMRankCell.m
//  Teecloud
//
//  Created by 小熊 on 2018/10/25.
//  Copyright © 2018年 小志. All rights reserved.
//

#import "GMRankCell.h"
@interface GMRankCell()
@property (weak, nonatomic) IBOutlet UIImageView *firImg;
@property (weak, nonatomic) IBOutlet UIImageView *secImg;
@property (weak, nonatomic) IBOutlet UIImageView *thrImg;
@property (weak, nonatomic) IBOutlet UIImageView *forImg;
@property (weak, nonatomic) IBOutlet UILabel *titleName;
@property (weak, nonatomic) IBOutlet UILabel *desLab;

@end
@implementation GMRankCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
-(void)setModel:(GMRankModel *)model{
    _model = model;
    for (NSInteger i =0; i<model.HeadUrls.count; i++) {
        NSString *imgurl =model.HeadUrls[i];
        if (i==0) {
            [self.firImg yy_setImageWithURL:[NSURL URLWithString:imgurl] placeholder:DefealtImg];
        }else if (i==1){
            [self.secImg yy_setImageWithURL:[NSURL URLWithString:imgurl] placeholder:DefealtImg];
        }else if (i==2){
            [self.thrImg yy_setImageWithURL:[NSURL URLWithString:imgurl] placeholder:DefealtImg];
        }else if (i==3){
            [self.forImg yy_setImageWithURL:[NSURL URLWithString:imgurl] placeholder:DefealtImg];
        }else{
            
        }
    }
    self.titleName.text = model.Title;
    self.desLab.text = model.Memo;
    
}

@end
